import Vue from 'vue'
import VueRouter from 'vue-router'
import Home from '../components/Home.vue'
import Login from '../components/login/Login.vue'
import Upload from '../components/upload/Upload.vue'
import Page from '../components/login/Page.vue'
import Talk from '../components/bbs/Talk.vue'
import Detail from '../components/login/Detailpage.vue'
import Partner from '../components/partner/Partner.vue'
import Send from '../components/bbs/Send.vue'
import Article from '../components/bbs/Article.vue'
import Users from '../components/personal/Users.vue'
Vue.use(VueRouter)

const routes = [
  { path: '/', redirect: '/page' },
  {path:'/login',component:Login},
  {path:'/home',component:Home,children:[
    {path:'/upload',component:Upload},
    {path:'/page',component:Page},
    {path:'/talk',component:Talk},
    {path:'/detail',component:Detail},
    {path:'/parnter',component:Partner},
    {path:'/send',component:Send},
    {path:'/article',component:Article},
    {path:'/users',component:Users},
  ]},

]

const router = new VueRouter({
  routes
})

export default router
